package com.xcity.pomelo.push.msg;

import com.xcity.game.combat.Action;
import com.xcity.game.combat.unit.CombatUnit;
import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.AbstractMessagePush;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@Deprecated
@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_MESSAGE)
public class CombatActionPush extends AbstractMessagePush {

	private long nextActionUnitId;
	private Action action;
	
	public CombatActionPush(Action action, CombatUnit nextActionUnit) {
		super(MSG_COMBAT_ACTION);
		this.action = action;
		this.nextActionUnitId = nextActionUnit != null ? nextActionUnit.getId() : 0L;
	}

	public long getNextActionUnitId() {
		return nextActionUnitId;
	}

	public void setNextActionUnitId(long nextActionUnitId) {
		this.nextActionUnitId = nextActionUnitId;
	}

	public Action getAction() {
		return action;
	}

	public void setAction(Action action) {
		this.action = action;
	}

}
